from django.urls import re_path
from rest_framework.routers import DefaultRouter
from rest_framework_jwt.views import obtain_jwt_token
from . import views
from .views import UserListView

urlpatterns = [
    re_path(r'^users/$',views.RegisterAPIView.as_view()),
    re_path(r'^user/$',views.UserListView.as_view()),
    re_path(r'^authorizations/$', obtain_jwt_token),
    re_path(r'^upload/avatar/$', views.AvatarView.as_view()),
    re_path(r'^user/password/$',views.ChangepasswordView.as_view()),
    re_path(r'^users/like/(?P<id>\d+)/$',views.UserfocusView.as_view()),

]
